package com.example.wisecarparking.service;

import com.example.wisecarparking.dao.RecordMapper;
import com.example.wisecarparking.domain.Record;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecordService {
    @Autowired
    RecordMapper recordMapper;

    public void insertRecord(Record record){
        recordMapper.save(record);
    }

    public List<Record> queryList(Record record){
        return recordMapper.findAll(record);
    }
}
